Skip to content

[bug] Fix Self-suppression when close rethrows the same exception in FileIO.overwriteFileUtf8 (#9674) - #9679

Merged
JingsongLi merged 1 commit into
apache:masterfrom
zhang-arvin:fix/9674-compaction-self-suppression
Sep 11, 2026
Merged

[bug] Fix Self-suppression when close rethrows the same exception in FileIO.overwriteFileUtf8 (#9674)#9679
JingsongLi merged 1 commit into
apache:masterfrom
zhang-arvin:fix/9674-compaction-self-suppression

Conversation

@zhang-arvin

Copy link
Copy Markdown
Contributor

Fixes #9674

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has practical value in the reported dedicated-compaction failure: HintFileUtils.commitHint retries IOException, but try-with-resources self-suppression replaces it with IllegalArgumentException and bypasses that retry path. The identity check preserves the original I/O failure while retaining a distinct close exception as suppressed.

I verified four focused scenarios against the changed FileIO: identical write/close exception, distinct exceptions, close-only failure, and success. They pass on JDK 8. Please add these as repository regression tests; the PR currently changes only production code. I did not reproduce the full HDFS compaction job.

@JingsongLi
JingsongLi merged commit 4bafa12 into apache:master Sep 11, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Dedicated Compaction log error Self-suppression not permitted

2 participants